package com.k.demo.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.k.demo.entity.ConstantTerm;
import com.k.demo.entity.ConstantTermKind;

public interface ConstantTermService {
	
	//查找全部
	List<ConstantTerm> getAll();
	
	//根据id进行查找
	ConstantTerm getById(int id);
	
	//根据传递的对象进行动态查找
	List<ConstantTerm> getByConstantTerm(ConstantTerm constantTerm);
	
	//根据id进行假删除
	int falseDeleteById(int id);
	
	//根据id进行真删除
	int trueDeleteById(int id);
	
	//批量删除
	boolean deletByGroup(List<Integer> list);
	
	//修改常数项
	ConstantTerm modifyConstantTerm(ConstantTerm constantTerm);
	
	//新增常数项
	ConstantTerm addConstantTerm(ConstantTerm constantTerm);
	
	//显示所有id并分页显示
	PageInfo<ConstantTerm> getPage(int pageNum,int pageSize);
	
	//显示查询结果并分页显示
	PageInfo<ConstantTerm> getPageByConstantTerm(int pageNum,int pageSize,ConstantTerm constantTerm);
	
	//根据类型查找
	List<ConstantTerm> getByConstantTermKind(int constant_term_kind);
}
